package cn.enited.devtools.apiaggregator.utils;

import java.util.Objects;

@FunctionalInterface
public interface Runner {

    void run();

    default Runner andThen(Runner after) {
        Objects.requireNonNull(after);
        return () -> { run(); after.run(); };
    }
}
